local Msg = require("core.Msg")
local Obj = require("core.Obj")
local BufferNotify = require("buffer.Notify")
local Conditions = require("skill.Conditions")

function CG_BUFFER_LIST(human,msg)
	local target = Obj.objs[msg.objID]
	if not target then return end
	if Conditions.canAttack(target) then
		local mm = Msg.gc.GC_BUFFER_LIST
		BufferNotify.setBufferList(target,mm.list)
		mm.objID = target.id
		Msg.send(mm,human.fd)
	end
end